//
//  WSBaseTableViewCell.m
//  LANGirl
//
//  Created by 吴帅 on 16/3/18.
//
//

#import "WSBaseTableViewCell.h"

@interface WSBaseTableViewCell ()



@end

@implementation WSBaseTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor = LV;
        
        self.myBackWhiteView = [UIView new];
        [self.contentView addSubview:self.myBackWhiteView];
        self.myBackWhiteView.backgroundColor = [UIColor whiteColor];
        //裁掉边框
        self.myBackWhiteView.layer.masksToBounds = YES;
        //设置半径
        self.myBackWhiteView.layer.cornerRadius = 6 *AUTO_WIDTH;
        [self.myBackWhiteView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(self.contentView.mas_top).offset(8 * AUTO_HEIGHT);
            make.left.mas_equalTo(self.contentView.mas_left).offset(8 * AUTO_WIDTH);
            make.bottom.mas_equalTo(self.mas_bottom).offset(-0);
            make.width.mas_equalTo(SCREEN_WIDTH - 8 * 2 * AUTO_WIDTH);
            
            
            
        }];
        self.myBackWhiteView.layer.borderWidth=1.0;
        //边框颜色
        self.myBackWhiteView.layer.borderColor=COLOR_FRAME;
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
